﻿#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt">专家推荐</td>
          </tr>
        </table></td>
    </tr>
</table>
<script language="JavaScript">
function doShow(){
	var id=ListForm.cid.value;
	if(id==""){
		alert("请选择要编辑的数据！");
		return false;
	}
	window.open("/showUser.do?cid="+id,"","");
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
<form id="ListForm" name="ListForm"  method="post" action="/blogResource.do">
	<input type="hidden" name="parameter" value="">
	<input type="hidden" name="cid"   value="$!cid">
	<input type="hidden" name="mulitCid"   value="$!mulitCid">
	<div style="margin:8px">
	<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CBD9D9" class="BorderLine">
		<thead>
			<tr valign="middle">
				<td width="20" height="27"><span class="title1">
					<input name="checkbox" type="checkbox"  onclick="selectAll(cids,this.checked);">
					</span></td>
				<td width="10%"><div align="center" class="cn_12px"><strong>资源名称</strong></div></td>
				<td width="35%"><div align="center" class="cn_12px"><strong>资源地址</strong></div></td>
				<td width="15%"><div align="center" class="cn_12px"><strong>资源类型</strong></div></td>
				<td>&nbsp;</td>
			</tr>
		</thead>
		#foreach($info in $list)
		<tr bgcolor="#F8FCF8" id="$!info.cid" onMouseOver="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);">
			<td width="3%" height="27" ><input type="checkbox" name="cids" value="$!info.cid">
				</td>
			<td width="10%" height="27" >$!info.title</td>
			<td width="45%" > 　<a href="$!info.url" target="_blank">$!info.url</a></td>
			<td>
				#if($info.type)
					#if($info.type==0)
					书籍
					#end
				#end
			</td>
			<td align="center" bgcolor="#F6FCFD">
			<a href="javascript:selectRow('$!info.cid');doEdit();"><img src="/images/system/edit.png" width="16" height="16" border="0" align="absmiddle"/></a>
			<a href="javascript:selectRow('$!info.cid');doEdit();">编辑</a>　
			
			<a href="javascript:selectRow('$!info.cid');doDel();"><img src="/images/system/delete.png" width="16" height="16" border="0" align="absmiddle"/></a>
			<a href="javascript:selectRow('$!info.cid');doDel();">删除</a>　</td>
		</tr>
		#end
	</table>
	</div>
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center">第<strong>$!page</strong>页 共<strong>$!pages</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
		</tr>
	</table>
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td><table height="50" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="50" align="left" valign="middle">&nbsp;</td>
						<td width="50" align="center" valign="middle"><input type="button" name="Add" value="添加" onClick="doAdd();"></td>
						<td width="50" align="center" valign="middle"><input type="button" name="Edit" value="修改" onClick="doEdit();"></td>
						<td width="50" align="center" valign="middle"><input type="button" name="Del" value="删除" onClick="doDel();"></td>
					</tr>
				</table></td>
		</tr>
	</table>
</form>
</td>
</tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end